

#pragma once

#include "flv_information.h"
#include <cstdint>


class FlvParser
{
public:
	FlvParser();
	int ParserFlvFormatData(const uint8_t * data, int length, int & use_length, FlvFormat * flv_data);
	int ParserFlvHeaderData(const uint8_t * data, int length, int & use_length, FlvHeader * flv_data);
	int ParserFlvTagData(const uint8_t * data, int length, int & use_length, FlvTag & flv_data);
private:
	int ParseVidoeData(const uint8_t * data, int length);
	int ParseAudioData(const uint8_t * data, int length);
	int ParseMetaData(const uint8_t * data, int length);
private:
	int m_parser_status{0};
};